package com.spring.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spring.boot.entity.Insurance;
import com.spring.boot.vo.QueryRequest;

import java.util.Map;

public interface InsuranceService extends IService<Insurance>{

    /**
     * @description: 新增险种
     * @param insurance 用户对象
     * @return map
     */
    Map<String, Object> addInsurance(Insurance insurance);

    /**
     * @description: 删除险种(批量)
     * @param insuranceId 险种id
     * @return map
     */
    Map<String, Object> deleteBatchIdsInsurance(String insuranceId);

    /**
     * @description: 修改险种
     * @param insurance 险种对象
     * @return map
     */
    Map<String, Object> updateInsurance(Insurance insurance);

    /**
     * @description: 筛选查询险种
     *      * @param insurance 险种对象
     *      * @return map
     */
    Map<String, Object> findInsuranceList(QueryRequest queryRequest, Insurance insurance);

    /**
     * @description: 筛选查询险种
     *      * @param insurance 险种对象
     *      * @return map
     */
    Map<String, Object> findInsuranceAllList();
}
